package com.woniuxy.cq.phrase3.controller.form;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author 胡八一
 * @date 2020/09/07 10:52
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserForm extends Page{
    private Integer userId;
    @NotEmpty
    private String userName;
    @NotEmpty
    private String userPass;
    @NotEmpty
    @Length(min=11, max=11)
    private String userPhone;
    @NotNull
    private Integer userStatusId;

    /**
     * 所属地区id
     */
    private Integer userAddrId;

    /**
     * 所属部门id
     */
    private Integer userOfficeId;

    private String userSalt;


}
